.class Lcom/waiqin365/lightapp/cockpit/d;
.super Landroid/webkit/WebChromeClient;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    invoke-direct {p0}, Landroid/webkit/WebChromeClient;-><init>()V

    return-void
.end method


# virtual methods
.method public onProgressChanged(Landroid/webkit/WebView;I)V
    .locals 6

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    mul-int/lit16 v1, p2, 0x3e8

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->setProgress(I)V

    const/16 v0, 0x64

    if-ne p2, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->dismissProgressDialog()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->a(Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/TextView;->isShown()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string/jumbo v0, "\u6210\u957f\u5386\u7a0b"

    iget-object v1, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->a(Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    const-string/jumbo v1, "showDevHistoryGuide"

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->b(Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;)Lcom/waiqin365/lightapp/view/hr;

    move-result-object v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    new-instance v1, Lcom/waiqin365/lightapp/view/hr;

    iget-object v2, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    iget-object v3, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    const v4, 0x7f0c034d

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Lcom/waiqin365/lightapp/view/hr;-><init>(Landroid/content/Context;Landroid/view/View;)V

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->a(Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;Lcom/waiqin365/lightapp/view/hr;)Lcom/waiqin365/lightapp/view/hr;

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->b(Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;)Lcom/waiqin365/lightapp/view/hr;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    const v2, 0x7f08011d

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/hr;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->b(Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;)Lcom/waiqin365/lightapp/view/hr;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/lightapp/cockpit/e;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/cockpit/e;-><init>(Lcom/waiqin365/lightapp/cockpit/d;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/hr;->a(Landroid/widget/PopupWindow$OnDismissListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/cockpit/d;->a:Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;->b(Lcom/waiqin365/lightapp/cockpit/CockpitMainActivity;)Lcom/waiqin365/lightapp/view/hr;

    move-result-object v0

    sget-object v1, Lcom/waiqin365/lightapp/view/ht;->b:Lcom/waiqin365/lightapp/view/ht;

    sget-object v2, Lcom/waiqin365/lightapp/view/hu;->a:Lcom/waiqin365/lightapp/view/hu;

    const/16 v3, 0xda

    const/4 v4, 0x0

    const/16 v5, -0xf

    invoke-virtual/range {v0 .. v5}, Lcom/waiqin365/lightapp/view/hr;->a(Lcom/waiqin365/lightapp/view/ht;Lcom/waiqin365/lightapp/view/hu;III)V

    :cond_0
    return-void
.end method
